/////////////////////////////////////////////////////
//
//	File: yekki.groovy
//	Author: Gary Niu
//	Last Modified: 22-Mar-2009
//
/////////////////////////////////////////////////////

yekki {
	profile {

		app = 'Scylla WebLogicSide System'
		version = '2.0b'
		author {
			firstname = 'Gary'
			lastname = 'Niu'
			email = 'gary.niu@gmail.com'
			homepage  = 'http://www.oraclefmw.com'
		}
	}
	global {
		vars {
			g_yekkiWorkbenchHome = 'YEKKI_WORKBENCH_HOME'
			g_yekkiHome = 'YEKKI_HOME'
			g_yekkiEvent = 'YEKKI_EVENT'
			g_yekkiArg1 = 'YEKKI_ARG1'
			g_yekkiArg2 = 'YEKKI_ARG2'
			g_yekkiArg3 = 'YEKKI_ARG3'
			g_mwHome = 'MW_HOME'
			g_wlHome = 'WL_HOME'
			g_classPath = 'CLASSPATH'
			g_javaHome = 'JAVA_HOME'
		}
		shell {
			unix {
				targetos = 'unix'
				executable = '/usr/bin/xterm'
				suffix = '.sh'
				prefix = '-title -e' 
			}
			windows {
				targetos = 'windows'
				executable = 'cmd.exe'
				suffix = '.cmd'
				prefix = '/c start' 
			}
		}
		settings {
			language = 'zh_CN'
		}
	}
	modules {
		app {
			global {
				settings {
					tasks = 'initapp,cleanapp,deployapp,undeployapp,stopapp,startapp,listapp,index'
					current = 'blank'
				}
				structure {
					app {
					}
				}
			}
			instance {
				settings {
					domain = 'wls_domain'
					targets = 'AdminServer'
					stage = 'stage'
					index = 'http://localhost:7001/blank'
				}
			}
		}
		dev {
			global {
				settings {
					tasks = 'initdev,cleandev,build,brunit,runit,batch,cleanbuild,genant'
					current = 'wlst'
				}
				structure {	
					dev {
						lib {
						}
					}
				}
			}
			instance {
				settings {
					dev_type = 'java'
					runner = 'run1'
				}
				definations {
					runners {
						run1 {
							main = 'Main'
							args = ''
						}
					}
				}
			}
		}
		cert {
			global {
				settings {
					current = 'server'
					tasks = 'gencert,initcert,cleancert,viewcert,listkeystore'
				}
				structure {
					cert {
					}
				}
			}
			instance {
				settings {
					cert_type = 'ca' //server,client,ca
					ca_cert = 'yekki_ca_cert.der'
					ca_key = 'yekki_ca_key.der'
					alias = 'yekki'
					password = 'weblogic'
				}
				props {		
					CN = 'localhost'
					C = 'CN'
					O =  'Oracle'
					OU = 'Territory'
					L = 'Jinan'
					S = 'Shandong'
					E = 'weblogic@oracle.com'
				}
			}
		}
		core {
			global {
				settings {
					tasks = 'wizard,initconf,archive,unarchive,help,about,version'
				}
			}
		}
		utils {
			global {
				settings {
					tasks = 'url,wlsclient'
				}
				urls {
					edocs = 'http://edocs.bea.com/'
					oracle = 'http://otn.oracle.com/'
					groovy = 'http://groovy.codehaus.org'
					gant = 'http://gant.codehaus.org'
					grails = 'http://grails.codehaus.org'
				}
			}
		}
		domain {
			global {
				settings {
					tasks = 'startserver,stopserver,initdomain,createdomain,startdomain,stopdomain,updatedomain,installce,uninstallce,cleandomain,utc,sbconsole,console,encrypt'
					current = 'wls_domain'
				}
				extensions {
					wls {
						description = 'Oracle WebLogic Server'
					}
					osb {
						exts = 'workshop_wl.jar,wls_webservice.jar,wlsb.jar,'
						path {
							wlsb = '/osb_10.3/common/templates/applications/'
							workshop_wl = '/workshop_10.3/common/templates/applications/'
						}
						description = 'Oracle Service Bus'
					}
					wlp {
						exts = 'wls_webservice.jar,workshop_wl.jar,p13n.jar,content.jar,wlp.jar'
						cmd = 'create_db'
						path {
							workshop_wl = '/workshop_10.3/common/templates/applications/'
							p13n = '/wlportal_10.3/common/templates/applications/'
							wlp = '/wlportal_10.3/common/templates/applications/'
							content = '/wlportal_10.3/common/templates/applications/'
						}
						description = 'Oracle WebLogic Portal'
					}
				}
				structure {
					domain {
					}
					applications{
					}
				}
			}

			instance {
				settings {
					listen_all_addr = 'true'
					auto_commit = 'true'
					domain_type = 'wls'
					set_rdbms_security_store = 'false'
				}
				props {
					Username = 'weblogic'
					Password = 'welcome1'
					AdminServer = 'AdminServer'
					ListenPort = '7001'
					ListenAddress = 'localhost'
					ServerStartMode = 'dev'
					OverwriteDomain = 'true'
					CreateStartMenu = 'false'
					BackupFiles = 'false'
					RdbmsSecurityStore {
						Prefix = 'Yekki'
						Username = 'scott'
						Password = 'tiger'
						ConnURL = 'jdbc:bea:oracle://localhost:1521'
						Driver = 'weblogic.jdbc.oracle.OracleDriver'
						Props = 'user=scott,portNumber=1521,SID=orcl,serverName=localhost'
					}
				}
			}
		}
	}
}
